filter

open override fun filter(predicate: (Nothing) -> Boolean): Try<Nothing>

Returns the same Success if the predicate is satisfied for the value. Otherwise returns a Failure.

Return

The same Success if the predicate is satisfied for the value. Otherwise returns a Failure.

Parameters

predicate

Predicate function.